<?php
 
namespace models\entities;
use classes; 
/**
 * @Entity(repositoryClass="models\repositories\BerkasTrainingRepository")
 * @Table(name="berkas_training")
 */
class BerkasTraining {
 
/**
 *  @Id
 *  @OneToOne(targetEntity="Berkas", cascade={"persist"})
 *  @JoinColumn(name="id", referencedColumnName="id")
 */
	protected $id;
	
/**
 * 
 * @ManyToOne(targetEntity="JenisTraining", fetch="EAGER")
 * @JoinColumn(name="jenis_training", referencedColumnName="id")
 */
	protected $jenisTraining;	
 
/**
 * @Column(name="jml_staff", type="integer")
 */
	protected $jmlStaff;

/**
 * @Column(name="jml_non_staff", type="integer")
 */
	protected $jmlNonStaff;
	
/**
 * @Column(name="jml_staff_lainnya", type="integer")
 */
	protected $jmlLainnya;	
	
/**
 * @Column(name="pria", type="integer")
 */
	protected $jmlPria;
	
/**
 * @Column(name="wanita", type="integer")
 */
	protected $jmlWanita;
	
/**
 * 
 * 
 * @Column(name="from_date", type="datetime")
 */
	protected $fromDate;
	
/**
 * 
 * 
 * @Column(name="to_date", type="datetime")
 */
	protected $toDate;		

	public function setId($id)
	{
	    $this->id = $id;
	}
 
	public function getId()
	{
	    return $this->id;
	}

	public function setJenisTraining($jenisTraining){
		$this->jenisTraining = $jenisTraining;
	}
	
	public function getJenisTraining(){
		return $this->jenisTraining;
	}
	
	public function setJmlStaff($staff){
		$this->jmlStaff = $staff;
	}
	
	public function getJmlStaff(){
		return $this->jmlStaff;
	}
	
	public function setJmlNonStaff($staff){
		$this->jmlNonStaff = $staff;
	}
	
	public function getJmlNonStaff(){
		return $this->jmlNonStaff;
	}
	
	public function setJmlPria($p){
		$this->jmlPria = $p;
	}
	
	public function getJmlPria(){
		return $this->jmlPria;
	}
	
	public function setJmlWanita($w){
		$this->jmlWanita = $w;
	}
	
	public function getJmlWanita(){
		return $this->jmlWanita;
	}
	
	public function setJmlLainnya($jml){
		$this->jmlLainnya = $jml;
	}
	
	public function getJmlLainnya(){
		return $this->jmlLainnya;
	}
	
	public function setFromDate($date){
		$this->fromDate = $date;
	}
	
	public function getFromDate(){
		return $this->fromDate;
	}
	
	public function setToDate($date){
		$this->toDate = $date;
	}
	
	public function getToDate(){
		return $this->toDate;
	}
}